#pragma once

#include <QWidget>
#include "TalkWindowShell.h"
class QTreeWidgetItem;


namespace Ui { class TalkWindow; };

class TalkWindow : public QWidget
{
	Q_OBJECT

public:
	TalkWindow(QWidget *parent,const QString uId);
	~TalkWindow();

	void addEmotionImage(int value);
	void setWindowName(const QString &windowName);
	void setSignName(const QString &sign);
	QString getTalkId();
	
	void apped(QString a, QString b);
	void setID(QString a);

private slots:
	void on_fileopenBtn_clicked();
	void onSendBtnChicked(bool);
	void onSetEmotionBtnStatus();

	void onItemDoubleClicked(QTreeWidgetItem* item, int c);

private:
	Ui::TalkWindow *ui;
	QString m_talkId;
	//GroupType m_groupType;

	void initControl();


	void init1Tilk();
	void init2Tilk();
	void init3Tilk();
	void init4Tilk();
	void init5Tilk();
	void init16ilk();

	void initInfo(QTreeWidgetItem *RootItem, int Id);

	bool m_isGroupTalk;
	void initGroupTalk();
};
